const WordView = ({ detail }) => {
  const { url } = detail
  return (
    <iframe
      title='pdfView'
      width='100%'
      height='100%'
      frameBorder='0'
      scrolling='yes'
      marginWidth='0'
      marginHeight='0'
      src={`/pdfjs-web/web/viewer.html?file=${url}`}
    />
  )
}

export default WordView
